Crate grin_keychain
source ·Expand description
Library module for the key holder functionalities provided by Grin.
Re-exports§
pub use crate::extkey_bip32::ChildNumber;
pub use crate::keychain::ExtKeychain;
pub use crate::view_key::ViewKey;
Modules§
- Implementation of BIP32 hierarchical deterministic wallets, as defined at https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki Modified from above to integrate into grin and allow for different hashing algorithms if desired
- BIP39 Implementation
Structs§
- Accumulator to compute the sum of blinding factors. Keeps track of each factor as well as the “sign” with which they should be combined.
- Encapsulates a max 4-level deep BIP32 path, which is the most we can currently fit into a rangeproof message. The depth encodes how far the derivation depths go and allows differentiating paths. As m/0, m/0/0 or m/0/0/0/0 result in different derivations, a path needs to encode its maximum depth.